﻿using System;
using System.Windows.Data;

namespace WaitLess.App.Converters
{
    public class MunicipalOfficeToImageConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value == null) return null;

            //return string.Format(@"/WaitLess.App;component/Assets/MunicipalOffices/{0}.jpg", value);
            return string.Format(@"/Assets/MunicipalOffices/{0}.jpg", value);
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
